package com.cucn.ingmall.order.feign;

import com.cucn.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author KouChaoJie
 * @since: 2022/1/19 11:16
 */
@FeignClient("ingmall-member")
public interface MemberFeignService {
    /**
     * 根据用户id查询用户收货地址
     *
     * @param memberId 用户id
     * @return 用户收货地址列表
     */
    @GetMapping("member/memberreceiveaddress/{memberId}/getAddress")
    public R getAddressByMemberId(@PathVariable("memberId") Long memberId);
}
